package com.kevin.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.kevin.utilits.JSONUtils;
import com.kevin.utility.entity.CommonResult;
@Controller
@RequestMapping({ "/noticeTemplate" })
public class NoticeTemplateController {
	
	private static final Logger logger = Logger.getLogger(NoticeTemplateController.class);
	
	@RequestMapping(value = { "gotoNoticeTemplate" })
	public String getAreaOrders(HttpServletRequest request,Model model) {
		return "index";
	}
	@RequestMapping(value = { "gotoEditNoticeTemplate" })
	public String gotoEditNoticeTemplate(HttpServletRequest request,Model model) {
		return "index";
	}
	@RequestMapping(value = { "findByPage" })
	@ResponseBody
	public String findByPage(HttpServletRequest request, HttpServletResponse response) {
		return null;
	}
	
	
	@RequestMapping(value = { "save" })
	@ResponseBody
	public String save(HttpServletRequest request, HttpServletResponse response) {
		
		
//		org.codehaus.jackson.map.ObjectMapper
		
		return JSONUtils.toJson(CommonResult.getSucessResult());
	}
	
	
}
